package com.example.rbac.mapper;

import com.example.rbac.entity.Role;
import com.example.rbac.entity.RoleMenu;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by Administrator on 2017/10/16.
 */
@Mapper
public interface RoleMapper extends CurdMapper<Role>{
    List<Role> findList();

    Integer insertRole(Role role);

    Integer insertByPermissions(@Param("roleId") String roleId,
                                @Param("roleMenuList") List<String> roleMenuList);
}
